package org.zjt.mock.demo.mock.service;

import org.springframework.validation.annotation.Validated;
import org.zjt.mock.demo.mock.domain.User;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author juntao.zhang
 * @version V1.0
 * @Description: TODO
 * @Package or.zjt.mock.demo.mock.service
 * @date 2018/6/3 16:26
 */
@Validated
public interface UserService {

    void saveUser(@NotNull(message = "用户信息不能为空")  User user);

    List<User> findAllUser();
}
